package com.alipay.sofa.award.record;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ImportResource;

/**
 * Slite2WebSpringBootApplication
 * <p/>
 * Created by yangguanchao on 16/7/22.
 */
@ImportResource({ "classpath*:META-INF/award-record/*.xml" })
@org.springframework.boot.autoconfigure.SpringBootApplication
public class SOFABootWebSpringApplication {

    // init the logger
    private static final Logger logger = LoggerFactory
                                           .getLogger(SOFABootWebSpringApplication.class);

    public static void main(String[] args) {

        SpringApplication springApplication = new SpringApplication(
            SOFABootWebSpringApplication.class);
        ApplicationContext applicationContext = springApplication.run(args);

        if (logger.isInfoEnabled()) {
            logger.info("application start");
        }
    }
}
